package com.xsy.android.compose.we.component

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.activity.viewModels
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.BottomAppBar
import androidx.compose.material3.Scaffold
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import androidx.navigation.compose.rememberNavController
import com.xsy.android.compose.we.component.ui.compose.BottomNavigation
import com.xsy.android.compose.we.component.ui.navgation.NavGraph
import com.xsy.android.compose.we.component.ui.theme.WeComposeTheme
import com.xsy.android.compose.we.component.view_model.WeViewModel

class MainActivity : ComponentActivity() {
    private val viewModel: WeViewModel by viewModels()
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContent {
            WeComposeTheme(theme = viewModel.theme) {
                NavGraph()
            }
        }
    }
}


